<?php
class Mwc_SystemPoint_Model_Mysql4_Membership_Collection extends Varien_Data_Collection_Db{
    protected $_membershipTable;
 
    public function __construct(){
        $resources = Mage::getSingleton('core/resource');
        parent::__construct($resources->getConnection('systempoint_read'));
        $this->_membershipTable= $resources->getTableName('systempoint/membership');
 
        $this->_select->from(
			array('membership' => $this->_membershipTable),
			array('*')
		);

        $this->setItemObjectClass(Mage::getConfig()->getModelClassName('systempoint/membership'));
    }
}